package me.hys.api.company;

import java.util.List;

import me.hys.api.BaseApi;
import me.hys.bo.company.HotEntity;
import me.hys.service.company.IHotManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Author: @author HYS . <br>
 * Date: 2015-12-25 下午9:56:37 . <br>
 * Function:
 */
@Controller
@RequestMapping("/api/hot")
public class HotApi extends BaseApi {
	@Autowired
	private IHotManager manager;

	/**
	 * @Title : findLatest
	 * @Description :
	 */
	@ResponseBody
	@RequestMapping(value = "/latest/{userId}", method = RequestMethod.GET)
	public List<HotEntity> findLatest(@PathVariable String userId) {
		return manager.findLatest(userId);
	}
}
